<?php
	if(isset($_COOKIE['studialuserpwd']) && isset($_COOKIE['studialuserid']))
	{
		setcookie('studialuserpwd', '', time() - 3600, "/");
		setcookie('studialuserid', '', time() - 3600, "/");	
		header ('Location: ../unlogged/index.php');
	}
	else
		header ('location: ../users/homeboard.php?id='.$_COOKIE['studialuserid']);
?>
